package com.situ.stl.service;

import com.github.pagehelper.PageInfo;
import com.situ.stl.entity.Coach;

import java.util.List;

/** 
 * Service层 - 教练
 */
public interface CoachService{

    /** 
     * add
     */
    int add( Coach coach) throws Exception;

    /** 
     * remove
     */
    int remove( int id) throws Exception ;

    /** 
     * edit
     */
    int edit( Coach coach) throws Exception ;

    /** 
     * getById
     */
    Coach getById( int id) ;

    /** 
     * get All
     */
    List<Coach> getAll() ;

    /** 
     * search
     */
    List<Coach> search( Coach coach) ;

    /** 
     * searchByPage
     */
    PageInfo searchByPage( Integer page, Integer limit, Coach coach) ;

}